﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProductDiscountManage.aspx.cs"
    Inherits="WebApp.Management.Product.ProductDiscountManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        输入商品编号：
        <asp:TextBox ID="txtProductCode" runat="server"></asp:TextBox>(产品编号)<asp:Button ID="btnShow"
            runat="server" Text="搜索产品" OnClick="btnShow_Click" /></div>
    <div>
        <asp:DataPager ID="dpProduct1" runat="server" PagedControlID="lvProdust" PageSize="5">
            <Fields>
                <asp:NumericPagerField />
            </Fields>
        </asp:DataPager>
        <asp:ListView ID="lvProdust" runat="server" OnItemCommand="lvProdust_ItemCommand"
            OnPagePropertiesChanged="lvProdust_PagePropertiesChanged">
            <LayoutTemplate>
                <table cellpadding="2" border="1">
                    <tr>
                        <th>
                            产品编号
                        </th>
                        <th>
                            品名
                        </th>
                        <th>
                            价格
                        </th>
                        <th>
                            Other
                        </th>
                    </tr>
                    <tr id="itemPlaceholder" runat="server" />
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                <tr>
                    <%--<td>
					<asp:Image ID="Image1" ImageUrl='<%# Eval("PictureUrl") %>' runat="server" Height=96  Width=96/>
				</td>--%>
                    <td>
                        <%# Eval("ProductCode") %>
                    </td>
                    <td>
                        <asp:Label ID="labName" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="labPrice" runat="server" Text='<%# Eval("eprice") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:LinkButton ID="btnDelete" runat="server" CommandName="OnSelect" CommandArgument='<%# Eval("ProductId") %>'>选择</asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:ListView>
        <asp:HiddenField ID="hfAllPay" Value="0" runat="server"></asp:HiddenField>
        <asp:HiddenField ID="HFPID" runat="server" Value="0" />
        <asp:DataPager ID="dpProduct2" runat="server" PagedControlID="lvProdust" PageSize="5">
            <Fields>
                <asp:NumericPagerField />
            </Fields>
        </asp:DataPager>
    </div>
    <div style="height: 20px">
    </div>
    <div>
        产品名称：<asp:Label ID="txtProductName" runat="server"></asp:Label>
    </div>
    <div>
        打折价：<asp:TextBox ID="txtPrice" runat="server"></asp:TextBox>元
    </div>
    <div>
        <asp:Button ID="btnAdd" runat="server" Text="添加" OnClick="btnAdd_Click" />
    </div>
    <div style="height: 20px">
        打折商品:</div>
    <div>
        <asp:ListView ID="lvProductnew" runat="server" OnItemCommand="lvProductnew_ItemCommand"
            OnPagePropertiesChanged="lvProductnew_PagePropertiesChanged">
            <LayoutTemplate>
                <table cellpadding="2" border="1">
                    <tr>
                        <th>
                            产品编号
                        </th>
                        <th>
                            产品名称
                        </th>
                        <th>
                            打折单价
                        </th>
                        <th>
                            删除
                        </th>
                    </tr>
                    <tr>
                        <asp:PlaceHolder ID="itemPlaceHolder" runat="server"></asp:PlaceHolder>
                    </tr>
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%# Eval("ProductCode") %>
                    </td>
                    <td>
                        <asp:Literal ID="lbName" runat="server" Text='<%# Eval("pname")%>'></asp:Literal>
                        <asp:HiddenField ID="HFPid" runat="server" Value='<%#Eval("ProductId")%>' />
                    </td>
                    <td>
                        <span class="sp2_bts2">￥<asp:Literal ID="SmallCountNew" Text='<%# Eval("discountPrice") %>'
                            runat="server"></asp:Literal>元
                    </td>
                    <td>
                        <asp:LinkButton ID="linkBtnDelete" CommandName="onDelete" CommandArgument='<%#Eval("ProductId")%>'
                            runat="server">删除</asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:ListView>
        <asp:DataPager ID="DataPager1" runat="server" PagedControlID="lvProductnew" PageSize="5">
            <Fields>
                <asp:NumericPagerField />
            </Fields>
        </asp:DataPager>
    </div>
    </form>
</body>
</html>
